Function.prototype.applyfinal=function(context){
    var context=context||window;
    context.fn=this;
    var args=arguments[1];
    var result=context.fn(...args);
    delete context.fn
    return result;
}
var value=2;
var foo={
    value:1
}
function bar(name,age){
    console.log(this.value)
    return{
        value:this.value,
        name,
        age
    }
}

console.log(bar.applyfinal(null,['zhangssfdsan',11]))